import request from "@/utils/fetch";

// 定义公共的请求首部关键词
const PARENT_ADDRESS = "/inSernumRecord";

// 序列号列表信息 -分页查询
export function queryInInfoByOrderNo(data) {
    return request({
        url: PARENT_ADDRESS + `/queryInfoByOrderNo`,
        method: "POST",
        data: data,
    });
}

// 序列号列表信息 -分页查询
export function queryOutInfoByOrderNo(data) {
    return request({
        url: `/outSernumRecord/queryInfoByOrderNo`,
        method: "POST",
        data: data,
    });
}

// 序列号详细信息
export function queryInfoById(id) {
    return request({
        url: PARENT_ADDRESS + `/` + id,
        method: "POST"
    });
}

// 出库序列号详细信息
export function queryOutInfoById(id) {
    return request({
        url: `outSernumRecord/` + id,
        method: "POST"
    });
}